package com.blogspot.mkorwel;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 
 * @author Mateusz Korwel
 *
 */
public class Main {
	
	private Osoba osoba;
	
	public static void main(String[] args) {
		
		ApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");
		Main m = new Main();
		m.osoba = (Osoba) context.getBean("osoba");
		System.out.println(m.osoba.getImie());
	}

}
